package com.dannypatterson.airinstaller.events {
	
	import com.dannypatterson.airinstaller.UpdateManager;
	
	import flash.events.ErrorEvent;
	import flash.events.Event;

	public class UpdateErrorEvent extends ErrorEvent {
		
		static public const CHECK_ERROR:String = "checkError";
		static public const DOWNLOAD_ERROR:String = "downloadError";
		
		[Bindable]
		public var updateManager:UpdateManager;
		
		public function UpdateErrorEvent(type:String, updateManager:UpdateManager, bubbles:Boolean=false, cancelable:Boolean=false, text:String="", id:int=0) {
			super(type, bubbles, cancelable, text, id);
			this.updateManager = updateManager;
		}
		
		/**
		 * @see flash.events.ErrorEvent#clone
		 */
		public override function clone():Event {
			return new UpdateErrorEvent(type, updateManager, bubbles, cancelable, text);
		}
		
	}
	
}